# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lxpolkit
pkgver=0.1.0
pkgrel=2
pkgdesc="Simple PolicyKit authentication agent"
url="https://lxde.org/"
arch="all"
license="GPL-2.0-or-later"
makedepends="gtk+-dev polkit-dev"
subpackages="$pkgname-lang"
source="https://downloads.sourceforge.net/lxde/lxpolkit-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" INSTALL="install -p" install
}

sha512sums="2e2c41edb1c4c6f43f646feefe651adcdfa101e52799af8aa4f70e3eccb21ba5b0e9d07102a792cef9d7bb16df1ef0f2d2c4cef3e126cf35a298f7a0d11a2ee5  lxpolkit-0.1.0.tar.gz"
